home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kswitchlanguagedialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-08  |  2.9 KB  |  88 lines

  1. /*
  2.  * This file is part of the KDE Libraries
  3.  * Copyright (C) 2007 Krzysztof Lichota (lichota@mimuw.edu.pl)
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public License
  16.  * along with this library; see the file COPYING.LIB.  If not, write to
  17.  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18.  * Boston, MA 02110-1301, USA.
  19.  *
  20.  */
  21.  
  22. #ifndef _KSWITCHLANGUAGEDIALOG_H_
  23. #define _KSWITCHLANGUAGEDIALOG_H_
  24.  
  25. #include <kdialogbase.h>
  26.  
  27. class KSwitchLanguageDialogPrivate;
  28.  
  29. /**
  30.  * @short Standard "switch application language" dialog box.
  31.  *
  32.  * This class provides "switch application language" dialog box that is used
  33.  * in KHelpMenu
  34.  *
  35.  * @author Krzysztof Lichota (lichota@mimuw.edu.pl)
  36.  */
  37.  
  38. class KDEUI_EXPORT KSwitchLanguageDialog : public KDialogBase
  39. {
  40.   Q_OBJECT
  41.  
  42.   public:
  43.         /**
  44.             * Constructor. Creates a fully featured "Switch application language" dialog box.
  45.             * Note that this dialog is made modeless in the KHelpMenu class so
  46.             * the users may expect a modeless dialog.
  47.             *
  48.             * @param parent The parent of the dialog box. You should use the
  49.             *        toplevel window so that the dialog becomes centered.
  50.             * @param name Internal name of the widget. This name in not used in the
  51.             *        caption.
  52.             * @param modal If false, this widget will be modeless and must be
  53.             *        made visible using QWidget::show(). Otherwise it will be
  54.             *        modal and must be made visible using QWidget::exec()
  55.             */
  56.         KSwitchLanguageDialog( QWidget *parent=0, const char *name=0, bool modal=true );
  57.         
  58.         virtual ~KSwitchLanguageDialog();
  59.     
  60.     protected slots:
  61.         /**
  62.         * Activated when the Ok button has been clicked. Overridden from KDialogBase.
  63.         */
  64.         virtual void slotOk();
  65.         
  66.         /**
  67.             Called when one of language buttons changes state.
  68.         */
  69.         virtual void languageOnButtonChanged(const QString & );
  70.         
  71.         /**
  72.             Called to add one language button to dialog.
  73.         */
  74.         virtual void slotAddLanguageButton();
  75.         
  76.         /**
  77.             Called when "Remove" language button is clicked.
  78.         */
  79.         virtual void removeButtonClicked();
  80.         
  81.     protected:
  82.         KSwitchLanguageDialogPrivate * const d;
  83.         
  84.         friend class KSwitchLanguageDialogPrivate;
  85. };
  86.  
  87. #endif
  88.